﻿using System;
using System.Collections.Generic;

namespace RegOnline
{
    public class PrintHtmlForms
    {


        public string fio, tema, grup, kod, kafedara, rukovoditelRaboti, RegNumber, Facultet, Kurs, RegDate, NomerZach;
        public string TotalLine;
        public string closeBody = "</body> </html>";

        public string openHtml =
            "<html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" \"xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\">" +
            " <head> <meta http-equiv=Content-Type content=\"text/html; charset=windows-1251\">" +
            "<meta name=ProgId content=Word.Document>" +
            "<meta name=Generator content=\"Microsoft Word 14\">" +
            "<meta name=Originator content=\"Microsoft Word 14\">" +
            "<title></title> <body lang=RU style='tab-interval:36.0pt'>";

        public enum TextAligement {
            left, center//, rigth
        }

        public string Normalize(string str, int len, TextAligement ta = TextAligement.center, bool multiline=false,int redLine = 0, int lines=0)
        {
            if (str == null) str = "";
            string total = "";
            string[] mas = str.Split(' ');
            var l = new List<string>(mas);
            bool firstline = true;
            if (l.Count > 0)
            {
                var totalList = new List<string>();

                int LineLength = (firstline) ? ((multiline) ? len - redLine : len) : len;
                firstline = false;
                int lineNum = 0;
                totalList.Add("_");
                for (int i = 0; i < l.Count; i++)
                {
                    if (totalList[lineNum].Length < (LineLength - mas[i].Length))
                        totalList[lineNum] += mas[i] + "_";
                    else
                    {
                        totalList.Add("_");
                        lineNum++;
                        i--;
                    }
                }

                if (totalList.Count<lines)
                    for (int i = 0; i < lines-totalList.Count; i++)
                    {
                        totalList.Add("_");
                    }

                for (int st = 0; st < totalList.Count;st++ )
                {
                    if (ta == TextAligement.left)
                    {
                        var le = (st == 0) ? len - redLine:len;
                        for (; totalList[st].Length < le; )
                        {
                            totalList[st] += "_";
                        }
                    }
                    if (ta == TextAligement.center)
                    {
                        var le = (st == 0) ? len - redLine:len;
                        int len_ = (le - totalList[st].Length) / 2;
                       
                        for (int i = 0; i < len_; i++)
                        {
                            totalList[st] = "_" + totalList[st] + "_";
                        }
                    }
                }
                foreach (string s in totalList)
                {
                    var endLine = (multiline) ? "<br>" : "";
                    total += s + endLine;

                }
            }
            return total;
        }

        public string GenerateTitul()
        {
          string s = 
"<body lang=RU style='tab-interval:35.4pt'>"+

"<div class=WordSection1>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;"+
"text-align:center;line-height:100%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'>МИНОБРНАУКИ РОССИИ<o:p></o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'>УХТИНСКИЙ ГОСУДАРСТВЕННЫЙ " +
"ТЕХНИЧЕСКИЙ УНИВЕРСИТЕТ<o:p></o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'>КАФЕДРА<br>"+kafedara +"<o:p></o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='font-size:14.0pt;margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><b style='mso-bidi-font-weight:normal'><span"+
"style='font-size:14.0pt;line-height:150%;font-family:\"Times New Roman\",\"serif\"'><br>"+tipTitula+"<o:p></o:p></span></b></p>"+

"<p class=MsoNormal align=center style='font-size:14.0pt;margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><b style='mso-bidi-font-weight:normal'><span"+
"style='font-size:14.0pt;line-height:150%;font-family:\"Times New Roman\",\"serif\"'>Дисциплина:<br>"+disciplina+
"</a><o:p></o:p></span></b><br><b>На тему:<br>" + tema + "</p></b><br><br>" +

"<p class=MsoNormal style='margin-bottom:0cm;margin-top:.0001pt;;line-height:" +
"150%'><span style='font-size:14.0pt;line-height:150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal style='margin-bottom:0cm;margin-top:.0001pt;;line-height:" +
"150%'><span style='font-size:14.0pt;line-height:150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:"+
"150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>"+

"<p class=MsoNormal align=center style='margin-bottom:0cm;margin-top:.0001pt;" +
"text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:150%;font-family:"+
            "Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>" +

            "<p class=MsoNormal align=right style='margin-bottom:0cm;margin-top:.0001pt;" +
            "text-align:right;line-height:150%;tab-stops:103.5pt'><span style='font-size:" +
            "14.0pt;line-height:150%;font-family:\"Times New Roman\",\"serif\"'><o:p>&nbsp;</o:p></span></p>" +

            "<p align=right style='margin-bottom:0cm;margin-top:.0001pt;line-height:" +
            "normal'><span style='align:right;font-size:14.0pt;font-family:\"Times New Roman\",\"serif\"'>Выполнил: "
            +fio+" " +grup+



            "<p class=MsoNormal align=right style='margin-bottom:0cm;margin-top:.0001pt;line-height:" +
            "normal'><span style='align:right;font-size:14.0pt;font-family:\"Times New Roman\",\"serif\"'>Проверил: "
            +rukovoditelRaboti+

                        "<p class=MsoNormal align=right style='margin-top:0cm;margin-bottom:.0001pt;line-height:" +
            "normal'><span style='align:right;font-size:14.0pt;font-family:\"Times New Roman\",\"serif\"'>Регистрационный номер: "
            + RegNumber +

                        "<p class=MsoNormal align=right style='margin-bottom:0cm;margin-top:.0001pt;line-height:" +
            "normal'><span style='align:right;font-size:14.0pt;font-family:\"Times New Roman\",\"serif\"'> Дата регистрации: "
            + RegDate +

            "<br><br><br><br><p class=MsoNormal align=center style='margin-top:0cm;margin-bottom:.0001pt;" +
            "text-align:center;line-height:150%'><span style='font-size:14.0pt;line-height:" +
            "150%;font-family:\"Times New Roman\",\"serif\"'><br><br><br>УХТА, " + DateTime.Now.Year.ToString() +
            " <o:p></o:p></span></p>" +

            "</div>";



            return s;

        }

        public string GenerateCard()
        {
            string total = 
                @"

<style>

@page
	{margin:.98in .79in .98in .79in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;}
tr
	{mso-height-source:auto; mso-height-source:userset;height:13.5pt;}
col
	{mso-width-source:auto;}
br
	{mso-data-placement:same-cell;}
.style0
 {mso-number-format:General;
 text-align:general;
 vertical-align:bottom;
 white-space:nowrap;
 font-size:10.0pt;
 font-weight:400;
 font-style:normal;
 text-decoration:none;"+
 "font-family:\"Times New Roman\", serif;"+
 @"mso-generic-font-family:auto;
 mso-font-charset:204;
 border:none;
 mso-protection:locked visible;
 mso-style-name:Обычный;
 mso-style-id:0;}
td
	{mso-style-parent:style0;
	padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:windowtext;
	font-size:10.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	
	mso-generic-font-family:auto;
	mso-font-charset:204;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	border:none;
	mso-background-source:auto;
	mso-pattern:auto;
	mso-protection:locked visible;
	white-space:nowrap;
	mso-rotate:0;}
.xl24
	{mso-style-parent:style0;" +
	"font-family:\"Times New Roman\", serif;"+
    @"mso-font-charset:204;
	text-align:center;
	vertical-align:top;}
.xl25
	{mso-style-parent:style0;
	font-size:12.0pt;
	
	mso-font-charset:204;
	text-align:center;
	vertical-align:top;}
.xl26
	{mso-style-parent:style0;
	
	mso-font-charset:204;
	text-align:left;
	vertical-align:top;}
.xl27
	{mso-style-parent:style0;
	
	mso-font-charset:204;
	vertical-align:top;}
.xl28
	{mso-style-parent:style0;
	
	mso-font-charset:204;
	text-align:center;
	vertical-align:top;
	border-top:none;
	border-right:.5pt solid windowtext;
	border-bottom:none;
	border-left:none;}
.xl29
	{mso-style-parent:style0;
	font-size:12.0pt;
	
	mso-font-charset:204;
	text-align:center;
	vertical-align:top;
	border-top:none;
	border-right:.5pt solid windowtext;
	border-bottom:none;
	border-left:none;}
.xl30
	{mso-style-parent:style0;
	
	mso-font-charset:204;
	text-align:left;
	vertical-align:top;
	border-top:none;
	border-right:.5pt solid windowtext;
	border-bottom:none;
	border-left:none;}

</style>

</head>



<table x:str border=1 cellpadding=0 cellspacing=0 width=512 style='border-collapse: collapse;table-layout:fixed;width:384pt'>
 <col width=64 span=8 style='width:48pt'>
 <tr>
 <td colspan=8 class=xl24 width=512 style='height:13.5pt;width:384pt'>
 МИНИСТЕРСТВО ОБРАЗОВАНИЯ
 <span style='mso-spacerun:yes'> </span></td> </tr> <tr> <td colspan=8 class=xl24>
 И НАУКИ РОССИЙСКОЙ ФЕДЕРАЦИИ&nbsp;
 </td> </tr> <tr> <td colspan=8 class=xl24><span style='mso-bidi-font-weight:normal'>
 Государственное образовательное учреждение</span></td> </tr>
 <tr>
 <td colspan=8 class=xl24><span
 style='mso-bidi-font-weight:normal'><span
 style='mso-spacerun:yes'> </span>высшего профессионального образования</span></td>
 </tr> <tr> <td colspan=8 class=xl24>Ухтинский
 государственный технический университет</td>
 </tr> <tr>
 <td colspan=8 class=xl24>КАРТОЧКА РЕЦЕНЗЕНТА</td>
<tr> <td colspan=8 class=xl24>
 Регистрационный №" + Normalize(RegNumber, 10) + @"</td></tr> <tr>
 <td colspan=8 class=xl24>Факультет " + Normalize(Facultet,50)+ " курс " +Normalize(Kurs,11) +@"</td>
 </tr> <tr>
 <td colspan=8 class=xl24>Специальность"+Normalize(Specialnost,40,TextAligement.left,false)+@"</td>
 </tr> <tr>
 <td colspan=8 class=xl24>Студент "+Normalize(fio,26)+@"шифр<span style='mso-spacerun:yes'> 
 </span>"+Normalize(NomerZach,12)+@"</td>
 </tr> <tr>
 <td colspan=8 class=xl25><sup>(фамилия, имя,
 отчество)</sup></td>
 </tr> <tr>
 <td colspan=8 class=xl26>Кафедра"+ Normalize(kafedara,55) +@" 
 </td>
 </tr> <tr>
 <td colspan=4 class=xl24 style='border-right:.5pt solid black;
 height:13.5pt'>Курсовой проект (работа) № _________</td>
 <td colspan=4 class=xl24><span style='mso-spacerun:yes'> </span>Защитил
 курсовой проект</td>
 </tr> <tr> <td colspan=4 class=xl24 style='border-right:.5pt solid black;
 height:13.5pt'>по
 "+Normalize(disciplina,31)+ @"<span style='mso-spacerun:yes'> </span></td>
 <td colspan=4 class=xl26>(работу) с оценкой____________________</td>
 </tr> <tr> <td colspan=4 class=xl25 style='border-right:.5pt solid black;
 height:13.5pt'><span
 style='mso-bidi-font-weight:bold'><sup>(наименование дисциплины)<span
 style='mso-spacerun:yes'>                </span></sup></span></td>
 <td colspan=4 class=xl24></td>
 </tr> <tr> <td colspan=4 class=xl26 style='border-right:.5pt solid black;
 height:13.5pt'>На тему____________________________</td>
 <td colspan=4 class=xl26><span style='mso-spacerun:yes'> 
 </span>Преподаватели _____________________</td>
 </tr>
 <tr>
 <td colspan=4 class=xl24 style='border-right:.5pt solid black;
 height:13.5pt'>___________________________________</td>
 <td colspan=4 class=xl27>___________________________________</td>
 </tr>
 <tr>
 <td colspan=4 class=xl24 style='border-right:.5pt solid black;
 height:13.5pt'>___________________________________</td>
<td colspan=4 class=xl25><sup>(подпись)</sup></td>
 </tr>
 <tr>
 <td class=xl26 colspan = 4>Дата получения «__»______20___г.
 <span style='mso-spacerun:yes'>     </span></td>
 <td colspan=4 class=xl25><sup>(фамилия, инициалы)</sup></td>
 </tr>
 <tr>
 <td colspan=4 class=xl26>Допущен к защите «__»_______20__г.</td>
<td colspan=4 class=xl26>___________________________________</td>
 </tr>
 <tr>
 <td colspan=4></td>

 <td colspan=4 class=xl25><sup>(подпись)</sup></td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan;
 border-right:.5pt solid black'>Курсовой проект (работа) проект должен быть<span
 style='display:none'></span></td>
 <td colspan=4 class=xl24>___________________________________</td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan;
 border-right:.5pt solid black'>защищен накануне
 экзамена по данной<span style='mso-spacerun:yes'>           </span><span
 style='display:none'><span style='mso-spacerun:yes'>     </span></span></td>
 <td colspan=4 class=xl25><sup>(фамилия, инициалы)</sup></td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan;
 border-right:.5pt solid black'>дисциплине. Студенты, не защитившие</td>
 <td colspan=4 class=xl24>___________________________________</td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan;
 border-right:.5pt solid black'>курсовой проект в установленный срок,</td>
 <td colspan=4 class=xl25><sup>(подпись)</sup></td>
 </tr>
 <tr>
 <td class=xl26 colspan=3 style='height:13.5pt;mso-ignore:colspan'>к
 экзамену не допускается.</td>
 <td class=xl30>&nbsp;</td>
 <td colspan=4 class=xl27 style='mso-ignore:colspan'></td>
 </tr>
 <tr>
 <td colspan=8 class=xl27 style='height:13.5pt;mso-ignore:colspan'></td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan'>Подписи
 преподавателей заверяю</td>
 <td colspan=4 class=xl27 style='mso-ignore:colspan'></td>
 </tr>
 <tr>
 <td class=xl26 colspan=4 style='height:13.5pt;mso-ignore:colspan'><span
 style='mso-spacerun:yes'> </span>(зав. кафедрой или зам. заведующего</td>
 <td colspan=4 class=xl27 style='mso-ignore:colspan'></td>
 </tr>
 <tr>
 <td colspan=4 class=xl26><span style='mso-spacerun:yes'> </span>по
 заочному обучению)<span style='mso-spacerun:yes'>    </span></td>
 <td colspan=4 class=xl24>____________ / ______________________</td>
 </tr>
 <tr>
 <td colspan=4 style='height:13.5pt;mso-ignore:colspan'></td>
 <td colspan=2 class=xl25><sup>(подпись)</sup></td>
 <td colspan=2 class=xl25><sup>(фамилия и инициалы)</sup></td>
 </tr>
 <tr> <td colspan=8 class=xl24>РЕЦЕНЗИЯ</td>
 </tr> <tr> <td colspan=8 class=xl24>________________________________________________________________________</td>
 </tr> <tr> <td colspan=8 class=xl24>________________________________________________________________________</td>
 </tr> <tr> <td colspan=8 class=xl24>________________________________________________________________________</td>
 </tr> <tr> <td colspan=8 class=xl24>________________________________________________________________________</td>
 </tr> <tr> <td colspan=8 class=xl24>________________________________________________________________________</td>
 </tr> <tr> <td colspan=8 style='height:13.5pt;mso-ignore:colspan'></td> </tr> </table>

";
            TotalLine = total;
            return TotalLine;
        }


        public string tipTitula { get; set; }


        public string Specialnost { get; set; }

        public string GenerateZapiska()
        {
            string s = "<style><!--@font-face	{font-family:\"Cambria Math\";" +
                       "	panose-1:2 4 5 3 5 4 6 3 2 4;" +
                       "	mso-font-charset:204;" +
                       "	mso-generic-font-family:roman;" +
                       "	mso-font-pitch:variable;" +
                       "	mso-font-signature:-536870145 1107305727 0 0 415 0;}" +
                       "p.MsoNormal, li.MsoNormal, div.MsoNormal" +
                       "{mso-style-unhide:no;" +
                       "mso-style-qformat:yes;" +
                       "mso-style-parent:\"\";" +
                       "margin:0cm;" +
                       "margin-bottom:.0001pt;" +
                       "mso-pagination:widow-orphan;" +
                       "font-size:10.0pt;" +
                       "font-family:\"Times New Roman\",\"serif\";" +
                       "mso-fareast-font-family:\"Times New Roman\";}" +
                       "h1" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	mso-style-next:Обычный;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	mso-pagination:widow-orphan;" +
                       "	page-break-after:avoid;" +
                       "	mso-outline-level:1;" +
                       "	font-size:14.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	mso-font-kerning:0pt;" +
                       "	font-weight:normal;}" +
                       "h2" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	mso-style-next:Обычный;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	mso-pagination:widow-orphan;" +
                       "	page-break-after:avoid;" +
                       "	mso-outline-level:2;" +
                       "	font-size:14.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	mso-bidi-font-weight:normal;}" +
                       "h3" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	mso-style-next:Обычный;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	text-align:center;" +
                       "	mso-pagination:widow-orphan;" +
                       "	page-break-after:avoid;" +
                       "	mso-outline-level:3;" +
                       "	font-size:14.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	mso-bidi-font-weight:normal;}" +
                       "h4" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	mso-style-next:Обычный;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	mso-pagination:widow-orphan;" +
                       "	page-break-after:avoid;" +
                       "	mso-outline-level:4;" +
                       "	font-size:12.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	font-weight:normal;}" +
                       "p.MsoTitle, li.MsoTitle, div.MsoTitle" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	text-align:center;" +
                       "	mso-pagination:widow-orphan;" +
                       "	font-size:14.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	mso-fareast-font-family:\"Times New Roman\";" +
                       "	font-weight:bold;" +
                       "	mso-bidi-font-weight:normal;}" +
                       "p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle" +
                       "	{mso-style-unhide:no;" +
                       "	mso-style-qformat:yes;" +
                       "	margin:0cm;" +
                       "	margin-bottom:.0001pt;" +
                       "	mso-pagination:widow-orphan;" +
                       "	font-size:14.0pt;" +
                       "	mso-bidi-font-size:10.0pt;" +
                       "	font-family:\"Times New Roman\",\"serif\";" +
                       "	mso-fareast-font-family:\"Times New Roman\";" +
                       "	font-weight:bold;" +
                       "	mso-bidi-font-weight:normal;}" +
                       "span.apple-converted-space" +
                       "	{mso-style-name:apple-converted-space;" +
                       "	mso-style-unhide:no;" +
                       "	mso-style-parent:\"\";}" +
                       "span.GramE" +
                       "	{mso-style-name:\"\";" +
                       "	mso-gram-e:yes;}" +
                       "@page WordSection1" +
                       "	{size:595.3pt 841.9pt;" +
                       "	margin:63.8pt 42.55pt 42.55pt 2.0cm;" +
                       "	mso-header-margin:36.0pt;" +
                       "	mso-footer-margin:36.0pt;" +
                       "	mso-paper-source:0;}" +
                       "div.WordSection1" +
                       "	{page:WordSection1;}" +
                       "-->" +
                       "</style>" +
                       "</head>" +
                       "<body lang=RU style='tab-interval:36.0pt'><div class=WordSection1>&nbsp;<br><p style='text-align:center;-size:12.0pt;color:#222222;background:white;'> <span >"+
                       "МИНИСТЕРСТВО ОБРАЗОВАНИЯ И НАУКИ РОССИЙСКОЙ ФЕДЕРАЦИИ <br> Государственное образовательное учреждение "+
            "высшего профессионального образования<br>УХТИНСКИЙ ГОСУДАРСТВЕННЫЙ ТЕХНИЧЕСКИЙ УНИВЕРСИТЕТ</p>" +
                       "<p class=MsoSubtitle><o:p>&nbsp;</o:p></p>" +
                       "<h1>Кафедра "+Normalize(kafedara,60)+"</h1>" +
                       "<p class=MsoNormal><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:14.0pt;" +
                       "mso-bidi-font-size:10.0pt'>СОГЛАСОВАНО<span" +
                       "style='mso-spacerun:yes'>                                                  " +
                       "</span>УТВЕРЖДАЮ<o:p></o:p></span></p>" +
                       "<h2><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>Главный специалист " +
                       "предприятия<span" +
                       "style='mso-spacerun:yes'>                                           " +
                       "</span>Зав. кафедрой<o:p></o:p></span></h2>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>(для " +
                       "<span class=GramE>которого</span> выполнен реальный проект)<o:p></o:p></span></p>" +
                       "<p class=MsoNormal>______________________________________<span" +
                       "style='mso-tab-count:3'>                                       </span>_______________________________________</p>" +
                       "<p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:8.0pt;" +
                       "mso-bidi-font-size:10.0pt'>подпись, инициалы, фамилия</span> <span" +
                       "style='mso-tab-count:6'>                                                                                      </span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>подпись, инициалы, фамилия<o:p></o:p></span></p>" +
                       "<p class=MsoNormal style='text-indent:36.0pt'><o:p>&nbsp;</o:p></p>" +
                       "<p class=MsoNormal>«_______»_______________________<span " +
                       "style='mso-spacerun:yes'>   </span>20___ г. <span style='mso-tab-count:2'>                      </span><span style='mso-spacerun:yes'>              </span>«_______»____________________<span" +
                       "style='mso-spacerun:yes'>   </span>20___ г.</p>" +
                       "<p class=MsoNormal><o:p>&nbsp;</o:p></p>" +
                       "<p class=MsoNormal><o:p>&nbsp;</o:p></p><br>" +
                       "<h3>ПОЯСНИТЕЛЬНАЯ ЗАПИСКА</h3><br>" +
                       "<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:" +
                       "normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></b></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>к " +
                       "курсовому проекту (работе) <span class=GramE>по</span>" + Normalize(disciplina,52)+
                       "<o:p></o:p></span></p>" + 
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:6'>                                                                        </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>наименование учебной " +
                       "дисциплины</span>" +
                      
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>на " +
                       "тему:"+Normalize(tema,72)+"<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'></span></p>" +

                       "<p></p><p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>Автор проекта (работы)" +
                       Normalize(fio,61)+ "<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='mso-tab-count:4'>                                                                </span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:" +
                       "2'>                                </span>подпись, дата, инициалы, фамилия</span><span" +
                       "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'></span></p>" +
                       "<h4>Специальность" + Normalize(Specialnost, 68) +"</h4>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:6'>                                                                        </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>номер, наименование<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<h4>Обозначение курсового проекта" +
                       "(работы)_____________________группа"+Normalize(grup,19)+"</h4>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>" +
                       "<span style='mso-tab-count:1'> </span></span><b style='mso-bidi-font-weight:" +
                       "normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'>Руководитель " +
                       "проекта</span></b><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span " +
                       "style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>______________________<span" +
                       "style='mso-tab-count:3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>______________________<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:7'>                                                                                   </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>подпись, дата<span" +
                       "style='mso-tab-count:3'>                                              </span>инициалы," +
                       "фамилия<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:1'> </span>" +
                       "Проект(работа) защищен(а)<span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>______________________<span" +
                       "style='mso-tab-count:2'>              </span>______________________<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:7'>                                                                                        </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>дата<span style='mso-tab-count:" +
                       "4'>                                                         </span>оценка<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:1'> </span></span><b style='mso-bidi-font-weight:" +
                       "normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'>Члены комиссии</span></b>" +
                       "<span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:" +
                       "2'>                            </span>______________________<span style='mso-tab-count:" +
                       "2'>                   </span>___________________<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:7'>                                                                          </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>подпись, дата<span" +
                       "style='mso-tab-count:3'>                                               &nbsp;&nbsp;&nbsp;&nbsp;</span>инициалы," +
                       "фамилия<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span " +
                       "style='mso-tab-count:6'>                                                                     &nbsp;&nbsp;&nbsp;&nbsp;</span>______________________<span" +
                       "style='mso-tab-count:2'>              </span>______________________<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                       "style='mso-tab-count:7'>                                                                          </span></span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>подпись, дата</span><span" +
                       "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:" +
                       "3'>                               </span></span><span style='" +
                       "mso-bidi-font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;инициалы, фамилия<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span " +
                       "style='mso-tab-count:6'>                                                         &nbsp;&nbsp;&nbsp;&nbsp;</span>______________________<span" +
                       "style='mso-tab-count:2'>              </span>______________________<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='mso-tab-count:7'>                                                                                               </span><span" +
                       "style='font-size:8.0pt;mso-bidi-font-size:10.0pt'>подпись, дата<span " +
                       "style='mso-tab-count:1'>          </span></span><span style='mso-tab-count:" +
                       "2'>                                </span><span style='" +
                       "mso-bidi-font-size:10.0pt'>инициалы, фамилия<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-size:10.0pt;text-align:center'>"+Normalize("УХТА, "+DateTime.Now.Year,38)+"<o:p></o:p></span></p>" +
                       "<p class=MsoNormal style='text-indent:36.0pt'><span style='" +
                       "mso-bidi-font-size:10.0pt;text-align:center'>город, год защиты<o:p></o:p></span></p>" +
                       "<p class=MsoNormal><o:p>&nbsp;</o:p></p></div>";

         

            return s;
        }

        internal string GenerateZadanie()
        {
            string styless = "<style>" +
"p.MsoNormal, li.MsoNormal, div.MsoNormal" +
"{mso-style-unhide:no; " +
"mso-style-qformat:yes;" +
"mso-style-parent:\"\";" +
"margin:0cm;" +
"" +
"mso-pagination:widow-orphan;" +
"font-size:10.0pt; " +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-fareast-font-family:\"Times New Roman\";}" +
" h1 	{mso-style-unhide:no; " +
"mso-style-qformat:yes;" +
"mso-style-next:Обычный;" +
"margin:0cm;" +
"margin-bottom:.0001pt;" +
"text-align:center;" +
"mso-pagination:widow-orphan;" +
"page-break-after:avoid;" +
"mso-outline-level:1;" +
"font-size:14.0pt;" +
"mso-bidi-font-size:10.0pt;" +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-font-kerning:0pt;" +
"mso-bidi-font-weight:normal;}" +
"h3" +
"{mso-style-unhide:no;" +
"mso-style-qformat:yes;" +
"mso-style-next:Обычный;" +
"margin:0cm;" +
"margin-bottom:.0001pt;" +
"mso-pagination:widow-orphan;" +
"page-break-after:avoid;" +
"mso-outline-level:3;" +
"font-size:12.0pt;" +
"mso-bidi-font-size:10.0pt;" +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-bidi-font-weight:normal;}" +
"p.MsoTitle, li.MsoTitle, div.MsoTitle" +
"{mso-style-unhide:no;" +
"mso-style-qformat:yes;" +
"margin:0cm;" +
"margin-bottom:.0001pt;" +
"text-align:center;" +
"mso-pagination:widow-orphan;" +
"font-size:14.0pt;" +
"mso-bidi-font-size:10.0pt;" +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-fareast-font-family:\"Times New Roman\";" +
"font-weight:bold;" +
"mso-bidi-font-weight:normal;}" +
"p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle" +
"{mso-style-unhide:no;" +
"mso-style-qformat:yes;" +
"margin:0cm;" +
"margin-bottom:.0001pt;" +
"text-align:center;" +
"mso-pagination:widow-orphan;" +
"font-size:12.0pt;" +
"mso-bidi-font-size:10.0pt;" +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-fareast-font-family:\"Times New Roman\";" +
"mso-bidi-font-weight:bold;}" +
"p.a, li.a, div.a" +
"{mso-style-name:Термин;" +
"mso-style-unhide:no;" +
"mso-style-next:Обычный;" +
"margin:0cm;" +
"margin-bottom:.0001pt;" +
"mso-pagination:widow-orphan;" +
"font-size:12.0pt;" +
"mso-bidi-font-size:10.0pt;" +
"font-family:\"Times New Roman\",\"serif\";" +
"mso-fareast-font-family:\"Times New Roman\";" +
"layout-grid-mode:line;}" +
"span.apple-converted-space" +
"{mso-style-name:apple-converted-space;" +
"mso-style-unhide:no;" +
"mso-style-parent:\"\";}" +
".MsoChpDefault" +
"{mso-style-type:export-only;" +
"mso-default-props:yes;" +
"font-size:10.0pt;" +
"mso-ansi-font-size:10.0pt;" +
"mso-bidi-font-size:10.0pt;}" +
"@page WordSection1" +
"{size:595.3pt 841.9pt;" +
"margin:2.0cm 42.45pt 21.25pt 70.9pt;" +
"mso-header-margin:36.0pt;" +
"mso-footer-margin:36.0pt;" +
"mso-paper-source:0;}" +
"div.WordSection1" +
"{page:WordSection1;} </style> </head>";

            string body =
            "" +

            "<div class=WordSection1>" +

            "<p class=MsoNormal align=center style='text-align:center'><em><b><span style='font-size:12.0pt;color:black;background:white;font-style:normal'>МИНИСТЕРСТВО " +
            "ОБРАЗОВАНИЯ</span></b></em><span class=apple-converted-space><b style='mso-bidi-font-weight:normal'><span style='font-size:12.0pt;color:#222222;" +
            "background:white'>&nbsp;</span></b></span><b style='mso-bidi-font-weight:normal'><span style='font-size:12.0pt;color:#222222;background:white'>И НАУКИ РОССИЙСКОЙ " +
            "ФЕДЕРАЦИИ<span class=apple-converted-space>&nbsp;</span></span></b><b style='mso-bidi-font-weight:normal'><span style='font-size:12.0pt'><o:p></o:p></span></b></p>" +

            "<p class=MsoSubtitle style='margin-right:-14.25pt'><b style='mso-bidi-font-weight:normal'>Государственное образовательное учреждение высшего профессионального " +
            "образования<o:p></o:p></b></p>" +

            "<p class=MsoSubtitle><o:p>&nbsp;</o:p></p>" +

            "<h1>УХТИНСКИЙ ГОСУДАРСТВЕННЫЙ ТЕХНИЧЕСКИЙ УНИВЕРСИТЕТ</h1>" +

            "<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></b></p>" +

            "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

            "<p class=a><span style='layout-grid-mode:both'>Кафедра";

            string kafedra = Normalize(kafedara, 80, TextAligement.center, false, 9) + "<o:p></o:p></span></p>";
            string body1 =

        "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

        "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

        "<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'>"
            + "ЗАДАНИЕ НА КУРСОВОЙ ПРОЕКТ (РАБОТ)" + "<o:p></o:p></span>" +
        "</b></p>" +

        "<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:normal'><span style='font-size:14.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></b></p>" +

        "<p class=a><span style='layout-grid-mode:both'>Студент";
            string student = Normalize(fio, 39) + "код_" + Normalize(kod, 8) + "_группа_" + Normalize(grup, 10) + "_<o:p></o:p></span></b></p>";
            string body2 =
            "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
            "style='mso-tab-count:3'>                                    </span></span>Фамилия," +
            "инициалы</p>" +

            "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt;line-height:1.5'>" +
            "  1.Тема___";
            // "__________________________________________________________________________<br>"+
            // " ________________________________________________________________________________<br>"+
            // " ________________________________________________________________________________<br>"+
            // " ________________________________________________________________________________<br>"+
            string tem = Normalize(tema, 79, TextAligement.left, true, 9,5) +
                         "<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>2." +
                         "Срок предоставления проекта (работы) к защите<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span" +
                         "style='mso-tab-count:1'>            </span><u>«<span" +
                         "style='mso-spacerun:yes'>    </span>»<span" +
                         "style='mso-spacerun:yes'>                    </span>20<span" +
                         "style='mso-spacerun:yes'>       </span>г.</u><o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

                         "<p class=a><span style='layout-grid-mode:both'>3.Исходные данные для" +
                         "проектирования<span style='mso-spacerun:yes'>  </span>(научного" +
                         "исследования)_______________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>" +
                         " ________________________________________________________________________________<br>" +
                         " ________________________________________________________________________________<br>" +
                         " ________________________________________________________________________________<br>" +
                         " ________________________________________________________________________________<br>" +
                         " ________________________________________________________________________________<br>" +
                         " ________________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4." +
                         "Содержание пояснительной записки курсового проекта (работы)<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.1.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.2.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.3.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.4.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.5.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>4.6.____________________________________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>5." +
                         "Перечень графического материала________________________________________________<o:p></o:p></span></p>" +

                         "<p class=MsoNormal><span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'>" +
                         "________________________________________________________________________________<br>" +
                         "________________________________________________________________________________<br>" +
                         "________________________________________________________________________________<br>" +
                         "________________________________________________________________________________</span></p>" +

                         "<h3>Руководитель проекта<span style='mso-spacerun:yes'>  </span>(работы) ______________ " +
                         "<span style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>" +
                         Normalize(rukovoditelRaboti, 30) + "</h3>" +

                         "<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span" +
                         "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:" +
                         "7'>  &nbsp;&nbsp;&nbsp;&nbsp;                                                                                       </span></span></b>Подпись," +
                         "дата<span style='mso-tab-count:3'>                                     </span>Фамилия," +
                         "инициалы<span style='mso-tab-count:1'>         </span></p>" +

                         "<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span" +
                         "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></b></p>" +

                         "<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span" +
                         "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><o:p>&nbsp;</o:p></span></b></p>" +

                         "<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span" +
                         "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><h3>Задание принял к исполнению&nbsp;&nbsp;&nbsp;&nbsp;" +
                         "<span style='mso-spacerun:yes'> ______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" +
                         "</span>" + Normalize(fio, 30) + "<o:p></o:p></span></h3></b></p>" +

                         "<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span" +
                         "style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><span style='mso-tab-count:" +
                         "7'> &nbsp;&nbsp;&nbsp;&nbsp;                                                                                          </span></span></b>Подпись," +
                         "дата<span style='mso-tab-count:3'>                                     </span>Фамилия," +
                         "инициалы<b style='mso-bidi-font-weight:normal'><span style='font-size:12.0pt;" +
                         "mso-bidi-font-size:10.0pt'><o:p></o:p></span></b></p><br>" +

                         "</div>";


            TotalLine = styless + body + kafedra + body1 + student + body2 + tem;
            return TotalLine;
        }

        public string disciplina { get; set; }
    }
}